gdk/quartz: Fix mixup in attributes usage creating window implementation
authorThibault Saunier <tsaunier@gnome.org>
Sun, 22 Feb 2015 12:01:17 +0000 (13:01 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Sun, 22 Feb 2015 14:50:39 +0000 (15:50 +0100)
commitfb581a1084ed8949c6b8c666f07a3239153c03f6
tree1cdb60708f60c068396a82245389c80cdc6d094f
parent77c982ed3f7fb2c8dc6956a71b79378cb2c09fbf
gdk/quartz: Fix mixup in attributes usage creating window implementation

First, attributes can be NULL (which is always the case when calling
gdk_window_ensure_native) so do not unconditionally dereference it.

Then the window_type should be taken directly from the GdkWindow as
in other backends (such as the X11 one for example).

https://bugzilla.gnome.org/show_bug.cgi?id=744942
gdk/quartz/gdkwindow-quartz.c